import Vue from 'vue'
import App from './App.vue'
import router from './router/router'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'

Vue.config.productionTip = false

Vue.use(ElementUI)

new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
if (typeof window !== 'undefined') {
  const script = document.createElement('script');
  script.src = 'https://open.ys7.com/ezopenjs/1.4/ezopen.js';
  script.onload = () => console.log('EZUIKit script loaded');
  document.head.appendChild(script);
}
import axios from 'axios'
axios.defaults.baseURL = 'http://localhost:8080.com'